*{margin: 0;padding: 0;}
body{
    width: 100%;
    height: 100%;
    background-color: #F5F5F5;
}
@font-face {
    font-family: 'iconfont';  /* project id 1979784 */
    src: url('//at.alicdn.com/t/font_1979784_at7wazh1u0m.eot');
    src: url('//at.alicdn.com/t/font_1979784_at7wazh1u0m.eot?#iefix') format('embedded-opentype'),
    url('//at.alicdn.com/t/font_1979784_at7wazh1u0m.woff2') format('woff2'),
    url('//at.alicdn.com/t/font_1979784_at7wazh1u0m.woff') format('woff'),
    url('//at.alicdn.com/t/font_1979784_at7wazh1u0m.ttf') format('truetype'),
    url('//at.alicdn.com/t/font_1979784_at7wazh1u0m.svg#iconfont') format('svg');
  }
#ad{
    height: 115px;
    background-color: green;
    background-image:url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a2a9e6db5e3c5374301827435d8595c6.jpg?w=5120&h=240);
    background-position: 50%;
    background-size: auto 115px;
}
#nav-wrap{
    width: 100%;
    height: 45px;
    background-color: #333;
}
#nav{
    width: 1226px;
    height: 45px;
    margin: 0 auto;
    background-color: #333;
   
}
#main-nav{
    width: 770px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    line-height: 45px;
    float: left;
    position: relative;
}
#main-nav>li{
    list-style: none;
    float: left;
}
#main-nav>li>a{
    text-decoration: none;
    color: #b0b0b0;
}
#main-nav>li>a:hover{
    color: white;
}
#main-nav>span{
    color: #424242;
}
#main-nav>img{
    width: 100px;height: 0;
    position: absolute;
    top: 45px;
    left: 626px;
    box-shadow: 0 1px 2px 2px #b0b0b0;
    opacity: 0;
    transition: .3s;
}
#main-nav-products-warp{
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 140px;
    z-index: 99999;
    border-top: 1px solid grey;
}
#main-nav-products{
    overflow: hidden;
    width: 1226px;
    height: 0px;
    margin: 0 auto;
    transition: .3s;
}
#main-nav-products>ul>li{
    position: relative;
    list-style: none;
    width: 180px;
    height: 170px;
    margin-left: 20px;
    margin-top: 5px;
    float: left;
    cursor: pointer;
}
#main-nav-products>ul>li:after{
    position: absolute;
    top: 40px;
    left: 180px;
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: #b0b0b0;
}

#main-nav-products>ul>li:nth-of-type(6):after{
    display: none;
}
#main-nav-products>ul>li>img{
    width: 150px;
    height: 100px;
    margin: 0 auto;
    display: block;
    margin-top: 8px;
}
#main-nav-products>ul>li>p{
    margin-top: 5px;
    color: #333;
    font-size: 12px;
    text-align: center;
}
#main-nav-products>ul>li>p:nth-of-type(2){
    margin-top: 5px;
    color: orangered;
}
#second-nav{
    width: 150px;
    height: 45px;
    margin-left: 197px;
    float: left;
    line-height: 45px;
    display: flex;
    justify-content: space-around;
}
#second-nav>li{
    height: 13px;
    float: left;
    list-style: none;
}
#nav>#second-nav>li>a{
    color: #b0b0b0;
    font-size: 13px;
    text-decoration: none;
}
#nav>#second-nav>li>a:hover{
    color: white;
}
#myCart{
    width: 100px;
    height: 45px;
    background-color: #424242;
    text-align: center;
    display: block;
    float: left;
    line-height: 45px;
    text-decoration: none;
    color: #b0b0b0;
    font-size: 13px;
    font-family: iconfont;
    transition: .3s;
}
#myCart:hover{
    color: orangered;
    background-color: white;
}
#third-nav{
    width: 1226px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
}
.logo{
    display: block;
    float: left;
    transition: .3s;
}
#logo{
    width: 50px;
    height: 50px;
    background-color: orangered;
    overflow: hidden;
    cursor: pointer;
    margin-top: 22px;
    float: left;
}
#logo>div{
    width: 110px;
    height: 50px;
}
#logo:hover .logo{
    transform: translate(-50px);
}
#leader{
    width: 550px;
    float: left;
    margin-top: 35px;
    margin-left: 150px;
}
#leader>ul{
    display: flex;
    justify-content: space-between;
}
#leader>ul>li{
    float: left;
    list-style: none;
}
#leader>ul>li>a{
    color: #333333;
    text-decoration: none;
    transition: .1s;
}
#leader>ul>li>a:hover{
    color: orangered;
}
#search{
    width: 260px;
    height: 45px;
    float: left;
    margin-left: 210px;
    margin-top: 32px;
}
#search>input[type="text"],#search>input[type="button"]{
    display: block;
    float: left;
}
#search>input[type="text"]{
    padding-left: 5px;
    width: 195px;
    height: 35px;
    outline-color: orangered;
}
#search>input[type="button"]{
    margin-left: 1px;
    width: 55px;
    height: 39px;
    background-color: grey;
    color: #f5f5dc;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 3px;
    transition: .3s;
}
#search>input[type="button"]:hover{
    background-color: #333;
    color: white;
}
#footer{
    width: 1226px;
    height: 365px;
    margin: 0 auto;
    overflow: hidden;
}
#footer #footer-top{
    width: 1100px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E3E3E3;
}
#footer #footer-top li{
    list-style: none;
    width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
    line-height: 20px;
}
#footer #footer-top li span{
    color: #E3E3E3;
}
#footer #footer-top li>span{
    color: #333 !important;
}
#footer-top i{
    font-size: 22px;
    color: #333;
    padding-right: 3px;
    padding-left: 25px;
}
#footer #footer-top li:hover span{
    cursor: pointer;
    color:orangered !important;
}
#footer #footer-top li:hover i{
    color:orangered !important;
}
#footer-top>span{
    color: #e3e3e3 !important;
}
#footer-mid{
    width: 1226px;
    height: 265px;
    margin: 0 auto;
    margin-top: 30px;
    overflow: hidden;
}
#help{
    width: 800px;
    height: 260px;
    float: left;
    margin-left: 30px;
    margin-top: 30px;
}
#help:after{
    display: block;
    content: '';
    width: 1px;
    height: 120px;
    color: #f5f5f5;
    background-color: #E3E3E3;
    margin-top: 35px;
    margin-left: 840px;
}
#kefu{
    width: 300px;
    height: 260px;
    float: left;
    margin-left: 40px;
    margin-top: 30px;
    text-align: center;
}
#kefu p{
    font-size: 25px;
    color: orangered;
    margin-top: 20px;
}
#kefu i{
    font-style: normal;
    font-size: 12px;
}
#kefu b{
    font-size: 14px;
    font-weight: normal;
    margin: 0 auto;
    margin-top: 13px;
    display: block;
    width: 120px;
    height: 30px;
    border: 1px solid orange;
    line-height: 30px;
    color: orange;
    cursor: pointer;
}
#footer-mid #help li{
    width: 130px;
    height: 260px;
    list-style: none;
    float: left;
    margin-left: 3px;
    overflow: hidden;
    text-align: center;
}
#footer-mid #help li b{
    display: block;
    margin-top: 15px;
}
#footer-mid #help li p:nth-of-type(1){
    margin-top: 20px;
}
#footer-mid #help li p{
    font-size: 14px;
    color: #7A7A7A;
    margin-top: 8px;
    cursor: pointer;
}
#footer-mid #help li p:hover{
    color: orangered;
}
#footer-bottom-wrap{
    width: 100%;
    height: 250px;
    background-color: #FAFAFA;
}
#footer-bottom{
    width: 1226px;
    height: 250px;
    margin: 0 auto;
    background-color: white;
}
#footer-bottom-wrap #footer-bottom div{
    float: left;
    margin-top: 20px;
    margin-left: 15px;
}
#footer-bottom-wrap #footer-bottom ul{
    margin-left: 10px;
    float: left;
    margin-top: 23px;
    width:1080px;
    height: 18px;
}
#footer-bottom-wrap #footer-bottom ul li{
    font-size: 12px;
    text-align: center;
    width: 60px;
    cursor: pointer;
    height: 18px;
    border-right: 1px solid grey;
    list-style: none;
    float: left;
    line-height: 18px;
    cursor: pointer;
    color:#333;
}
#footer-bottom-wrap #footer-bottom ul li:nth-of-type(14){
    border: none;
}
#footer-bottom-wrap #footer-bottom ul li:hover{
    color: orangered;
}
#a{
    width: 1000px;
    height: 120px;
    position: relative;
    top: -20px;
    left: -5px;
}
#footer-bottom-wrap #footer-bottom a{
    color: gray;
    text-decoration: none;
    font-size: 12px;
}
#footer-bottom-wrap #footer-bottom a:hover{
    color: orangered;
}
#imgbox{
    position: relative;
    top: -70px;
    left: 67px;
}
#imgbox img{
    width: 85px;
    height: 28px;
    cursor: pointer;
}
#enjoy{
    font-family: '仿宋';
    text-align: center;
    font-size: 20px;
    position: relative;
    top: -42px;
    color: #C7C7C7;
}
#product-details{
    width: 1226px;
    height: 550px;
    overflow: hidden;
    margin: 0 auto;
}
#img-box{
    width: 500px;
    height: 500px;
    background-color: #fff;
    margin-left: 55px;
    margin-top: 20px;
    float: left;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}
#img-box img{
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 5px;
    transition: .4s;
    position: absolute;
    top: 0;right: 0;
    left: 0;bottom: 0;
    margin:auto;
}
#img-box img:hover{
    transform: scale(1.3);
}
#details-box{
    width: 558px;
    height: 500px;
    margin-top: 20px;
    margin-left: 50px;
    background-color: #fff;
    float: left;
    overflow: hidden;
    border-radius: 10px;
}
#products-name{
    font-size: 25px;
    padding-left: 15px;
    padding: 10px;
}
#products-intr{
    width: 480px;
    height: 180px;
    margin: 0 auto;
    font-size: 15px;
    color:gray;
    border-radius: 10px;
    background-color:  #F5F5F5;
    padding: 10px;
    border: 1px solid rgba(152, 152, 152, .2);
}
#addcart{
    margin: 0 auto;
    margin-top: 20px;
    width: 500px;
    height: 130px;
    background-color: #F9F9FA;
    overflow: hidden;
    border: 1px solid rgba(152, 152, 152, .3);
    border-radius: 10px;
}
#addcart p:nth-of-type(1){
    margin: 15px;
    float: left;
}
#addcart p:nth-of-type(2){
    margin: 15px;
    float: right;
}
#addcart h2{
    margin-top: 70px;
    text-align: left;
    margin-left: 17px;
    color: orangered;
}
#addcartbtn-box{
    width: 558px;
    height: 80px;
    /* background-color:green; */
    margin-top: 12px;
}
#addcartbtn-box img{
    width: 145px;
    height: 65px;
    float: right;
    display: block;
    margin: 4px;
    margin-right: 14px;
    cursor: pointer;
    transition: .7s;
    transform-style: preserve-3d;
}
#addcartbtn-box img:hover{
    transform:rotateY(360deg);
}
#addcartbtn{
    width: 300px;
    height: 54px;
    background-color: orange;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    border: none;
    margin-left: 14px;
    transition: .3s;
    margin-top: 10px;
}
#addcartbtn:hover{
    background-color: orangered;
}
/* 去除input输入框的加减按钮 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"] {
    -moz-appearance: textfield;
}
#addcartnum{
    border: 2px solid orange;
    border-radius: 5px;
    font-size: 18px;
    line-height: 50px;
    text-align: center;
    width: 49px;    
    height: 49px;
    outline-color: orangered;
    margin-left: 5px;
    transition: .3s;
}
#addcartnum:hover{
    transform: scale(1.1);
}
